#!/bin/bash
# 推送版本镜像的时候同时也会覆盖latest镜像, 注意修改代理地址，没有梯子太麻烦了
docker build -t registry.cn-beijing.aliyuncs.com/easyxu/kubernetes-filebrowser:${1-latest} .
docker push registry.cn-beijing.aliyuncs.com/easyxu/kubernetes-filebrowser:${1-latest}
docker rmi registry.cn-beijing.aliyuncs.com/easyxu/kubernetes-filebrowser:${1-latest}
